<?php
require '../class/Es.php';
$es = new Es();

//$res = $es->getDoc('dq_1', 2);

//$res = $es->getDocs('dq_1', [1,2,3]);

/*$data = [
    'name' => 'mowang'
];
$res = $es->updateDoc('dq_1',  1000000, $data);*/


$pattern = "/http:\/\/(.*)/";
$string = "http://www.elastic.co";

preg_match($pattern,  $string, $a);

echo "<pre>";
print_r($a);
echo "<pre>";



